package com.ming.mallchat.common.chat.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ming.mallchat.common.chat.mapper.GroupMemberMapper;
import com.ming.mallchat.common.chat.pojo.GroupMember;
import org.springframework.stereotype.Service;

/**
 * @author 86150
 * @date 2023/10/12
 */
@Service
public class GroupMemberDao extends ServiceImpl<GroupMemberMapper, GroupMember> {
    public GroupMember getMember(Long id, Long uid) {
        return lambdaQuery().eq(GroupMember::getGroup_id,id).eq(GroupMember::getUid,uid).one();
    }
}
